<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>管理员删除学生</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<link rel="stylesheet" type="text/css" href="css/student.css">
<script type="text/javascript" language="javascript">
	function addurl() {
		var item = document.getElementById("selectID").value;
		if (!isNaN(document.getElementById("selectID").value)) {
			window.location.href = "<%=basePath%>showMessage.action?id="
					+ document.getElementById("selectID").value;
		}
	}
</script>
</head>

<body>
	<jsp:include page="head.jsp"></jsp:include>
	<div>
		<div id="left">
			<ul>

				<li>
					<h2>
						<a href="<%=basePath%>addStudent.jsp">添加学生</a>
					</h2></li>
				<li>
					<h2>
						<a href="<%=basePath%>deleteStudent.jsp">删除学生</a>
					</h2>
				</li>
				<li>
					<h2>
						<a href="<%=basePath%>showstudent.jsp">查看学生</a>
					</h2>
				</li>

			</ul>
		</div>
		    <!-- 根据学号查询学生 -->
			<font class="word">查询</font><input type="text"  id="selectID" value="" class="search" />
			 <a href="javascript:addurl();" id="id" 
			style="text-decoration:none;text-align: center"> 
			<img src="images/search.png" class="image">
			</a>
          <!-- 管理员删除学生 -->
			<div id="main">
				<h4>显示学生信息</h4>
                <s:property value="#request.meg"/>
				<s:if test="#request['stu']!=null">
					<s:iterator value="#request['stu']" id="student">
					  
						<li>学号：<s:property value="#student.id" /></li>
						<li>姓名：<s:property value="#student.name" /></li>
						<li>性别：<s:property value="#student.sex" /></li>
						<li>学院：<s:property value="#student.academy" /></li>
						<li>专业：<s:property value="#student.major" /></li>
						<li>年级：<s:property value="#student.grade" />级</li>
						<li>班级：<s:property value="#student.theclass" />班</li>
						<li>电子邮箱：<s:property value="#student.email" /></li>
						<li>联系方式：<s:property value="#student.phone" /></li>

					</s:iterator>
					</br></br>
                 <form action="deleteStudent.action" method="post">
				 <input type="hidden" name="id" value="<s:property value="#student.id" />" />
				<input type="submit" value="删   除" />
				</form>
				</s:if>
				  
			</div>
		
	</div>
	<hr width=100% size=5 color=#2323fe style="FILTER: alpha(opacity=100,finishopacity=0,style=3)">
</body>
</html>
